
all: demo triangle

CXX=$(CROSS_COMPILE)g++

demo:main.o
	$(CXX) $^ -o $@ -ldl

triangle:triangle.o
	$(CXX) -fpic -shared -o $@.so $^
	

clean:
	rm -rf demo *.so *.o
